package com.itwn.util;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringUtil {
    public static ApplicationContext applicationContext;
    static {
        applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
    }
    public static Object getBean(String name){
        Object bean = applicationContext.getBean(name);
        return bean;
    }
}
